﻿using HHXX.EFDAL;
using HHXX.IDAL;
using System;

namespace HHXX.DALFactory
{
    public partial class DbSession : IDbSession
    {
        /// <summary>
        /// 拿到当前的EF上下文 把修改的实体进行一个整体提交
        /// </summary>
        /// <returns></returns>
        public int SaveChanges()
        {
            return DbContextFactory.GetCurrentDbContext().SaveChanges();
        }

    }
}
